400
How can I display only the month of the date

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Date");
	COM::createFromVariant(extree1.Columns().Add("Month")).ComputedField("month(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/2/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/3/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2004 13:00:00",213)));
}
399
How can I get only the year part from a date expression

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Date");
	COM::createFromVariant(extree1.Columns().Add("Year")).ComputedField("year(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/2/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/3/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2004 13:00:00",213)));
}
398
Can I convert the expression to date

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Number");
	COM::createFromVariant(extree1.Columns().Add("Date")).ComputedField("date(dbl(%0))");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("30000.99");
		com_Items.AddItem("3561.23");
		com_Items.AddItem("1232.34");
}
397
Can I convert the expression to a number, double or float

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Number");
	COM::createFromVariant(extree1.Columns().Add("Number + 2")).ComputedField("dbl(%0)+2");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
396
How can I display dates in long format

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Date");
	COM::createFromVariant(extree1.Columns().Add("LongFormat")).ComputedField("longdate(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/2/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/3/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2004 13:00:00",213)));
}
395
How can I display dates in short format

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Date");
	COM::createFromVariant(extree1.Columns().Add("ShortFormat")).ComputedField("shortdate(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/2/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/3/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2004 13:00:00",213)));
}
394
How can I display the time only of a date expression

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Date");
	COM::createFromVariant(extree1.Columns().Add("Time")).ComputedField("'time is:' + time(date(%0))");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/2/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/3/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2004 13:00:00",213)));
}
393
Is there any function to display currencies, or money formatted as in the control panel

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Number");
	COM::createFromVariant(extree1.Columns().Add("Currency")).ComputedField("currency(dbl(%0))");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
		com_Items.AddItem("10000.99");
}
392
How can I convert the expression to a string so I can look into the date string expression for month's name

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Number");
	COM::createFromVariant(extree1.Columns().Add("Str")).ComputedField("str(%0) + ' AA'");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
391
Can I display the absolute value or positive part of the number

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Number");
	COM::createFromVariant(extree1.Columns().Add("Abs")).ComputedField("abs(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
390
Is there any function to get largest number with no fraction part that is not greater than the value

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Number");
	COM::createFromVariant(extree1.Columns().Add("Floor")).ComputedField("floor(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
389
Is there any function to round the values base on the .5 value

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Number");
	COM::createFromVariant(extree1.Columns().Add("Round")).ComputedField("round(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
388
How can I get or display the integer part of the cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Number");
	COM::createFromVariant(extree1.Columns().Add("Int")).ComputedField("int(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
387
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	COM::createFromVariant(extree1.Columns().Add("")).ComputedField("proper(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("root");
		com_Items.InsertItem(h,,"child child");
		com_Items.InsertItem(h,,"child child");
		com_Items.InsertItem(h,,"child child");
		com_Items.ExpandItem(h,true);
}
386
Is there any option to display cells in uppercase

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	COM::createFromVariant(extree1.Columns().Add("")).ComputedField("upper(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"Chld 3");
		com_Items.ExpandItem(h,true);
}
385
Is there any option to display cells in lowercase

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	COM::createFromVariant(extree1.Columns().Add("")).ComputedField("lower(%0)");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"Chld 3");
		com_Items.ExpandItem(h,true);
}
384
How can I mark the cells that has a specified type, ie strings only

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	int h;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(extree1.ConditionalFormats()).Add("type(%0) = 8"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0));
	extree1.Columns().Add("");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,COMVariant::createFromInt(2));
		com_Items.InsertItem(h,,"Chld 3");
		com_Items.ExpandItem(h,true);
}
383
How can I bold the items that contains data or those who displays empty strings

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	int h,hC;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(extree1.ConditionalFormats()).Add("not len(%1)=0"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.Bold(true);
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		hC = com_Items.InsertItem(h,,"Child 2");
		com_Items.CellCaption(hC,COMVariant::createFromInt(1),"1");
		com_Items.InsertItem(h,,"Child 3");
		com_Items.ExpandItem(h,true);
}
382
Can I change the background color for items or cells that contains a specified string

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	int h;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(extree1.ConditionalFormats()).Add("%0 contains 'hi'"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.BackColor(WinApi::RGB2int(255,0,0));
	extree1.Columns().Add("");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"Chld 3");
		com_Items.ExpandItem(h,true);
}
381
Is there any option to change the fore color for cells or items that ends with a specified string

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	int h;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(extree1.ConditionalFormats()).Add("%0 endwith '22'"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0));
	extree1.Columns().Add("");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 1.22");
		com_Items.InsertItem(h,,"Child 2.22");
		com_Items.ExpandItem(h,true);
}
380
How can I highlight the cells or items that starts with a specified string

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	int h;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(extree1.ConditionalFormats()).Add("%0 startwith 'C'"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.Underline(true);
	extree1.Columns().Add("");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"SChild 3");
		com_Items.ExpandItem(h,true);
}
379
How can I change the background color or the visual appearance using ebn for a particular column

public void init()
{
	COM com_Columns;
	anytype var_Columns;
	;

	super();

	extree1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Columns = extree1.Columns(); com_Columns = var_Columns;
		com_Columns.Add("Column 1");
		COM::createFromVariant(com_Columns.Add("Column 2")).Def(7/*exHeaderBackColor*/,COMVariant::createFromInt(16777216));
		COM::createFromVariant(com_Columns.Add("Column 3")).Def(7/*exHeaderBackColor*/,COMVariant::createFromInt(16777471));
		com_Columns.Add("Column 4");
}
378
How can I change the background color for a particular column

public void init()
{
	COM com_Columns;
	anytype var_Columns;
	;

	super();

	var_Columns = extree1.Columns(); com_Columns = var_Columns;
		com_Columns.Add("Column 1");
		COM::createFromVariant(com_Columns.Add("Column 2")).Def(7/*exHeaderBackColor*/,COMVariant::createFromInt(8439039));
		com_Columns.Add("Column 3");
}
377
How can I display the column's header using multiple lines

public void init()
{
	;

	super();

	extree1.HeaderHeight(128);
	extree1.HeaderSingleLine(false);
	COM::createFromVariant(extree1.Columns().Add("This is just a column that should break the header.")).Width(32);
	extree1.Columns().Add("This is just another column that should break the header.");
}
376
How can include the values in the inner cells in the drop down filter window

public void init()
{
	COM com_Column,com_Items;
	COMVariant s;
	anytype var_Column,var_Items;
	;

	super();

	extree1.DrawGridLines(-2/*exRowLines*/);
	extree1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	extree1.Description(1/*exFilterBarBlanks*/,"");
	extree1.Description(2/*exFilterBarNonBlanks*/,"");
	var_Column = COM::createFromVariant(extree1.Columns().Add("Single Column")); com_Column = var_Column;
		com_Column.HTMLCaption("Single column with <b>inner cells</b>");
		com_Column.ToolTip("Click the drop down filter button, and the filter list includes the inner cells values too.");
		com_Column.DisplayFilterButton(true);
		com_Column.DisplayFilterPattern(false);
		com_Column.FilterList(64/*exIncludeInnerCells*/);
	extree1.ShowFocusRect(false);
	var_Items = extree1.Items(); com_Items = var_Items;
		s = com_Items.SplitCell(com_Items.AddItem("S 1.1"),COMVariant::createFromInt(0));
		com_Items.CellCaption(,s,"S 1.2");
		com_Items.CellHAlignment(,s,1/*CenterAlignment*/);
		com_Items.CellBackColor(,s,0x1000000);
		com_Items.CellWidth(,s,84);
		s = com_Items.SplitCell(com_Items.AddItem("S 2.1"),COMVariant::createFromInt(0));
		com_Items.CellCaption(,s,"S 2.2");
		com_Items.CellHAlignment(,s,1/*CenterAlignment*/);
		com_Items.CellWidth(,s,84);
		s = com_Items.SplitCell(com_Items.AddItem("S 3.1"),COMVariant::createFromInt(0));
		com_Items.CellCaption(,s,"S 3.2");
		com_Items.CellHAlignment(,s,1/*CenterAlignment*/);
		com_Items.CellBackColor(,s,0x1000000);
		com_Items.CellWidth(,s,84);
}
375
How can I sort the value gets listed in the drop down filter window

public void init()
{
	COM com_Column,com_Column1,com_Items;
	anytype var_Column,var_Column1,var_Items;
	int h;
	;

	super();

	extree1.LinesAtRoot(-1/*exLinesAtRoot*/);
	extree1.MarkSearchColumn(false);
	extree1.Description(0/*exFilterBarAll*/,"");
	extree1.Description(1/*exFilterBarBlanks*/,"");
	extree1.Description(2/*exFilterBarNonBlanks*/,"");
	var_Column = COM::createFromVariant(extree1.Columns().Add("P1")); com_Column = var_Column;
		com_Column.DisplayFilterButton(true);
		com_Column.DisplayFilterPattern(false);
		com_Column.FilterList(16/*exSortItemsDesc*/);
	var_Column1 = COM::createFromVariant(extree1.Columns().Add("P2")); com_Column1 = var_Column1;
		com_Column1.DisplayFilterButton(true);
		com_Column1.DisplayFilterPattern(false);
		com_Column1.FilterList(32/*exSortItemsAsc*/);
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Z3");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"C");
		com_Items.CellCaption(com_Items.InsertItem(h,,"Z1"),COMVariant::createFromInt(1),"B");
		com_Items.CellCaption(com_Items.InsertItem(h,,"Z2"),COMVariant::createFromInt(1),"A");
		com_Items.ExpandItem(h,true);
}
374
How can I align the text/caption on the scroll bar

public void init()
{
	;

	super();

	extree1.ScrollPartCaption(1/*exHScroll*/,512/*exLowerBackPart*/,"left");
	extree1.ScrollPartCaptionAlignment(1/*exHScroll*/,512/*exLowerBackPart*/,0/*LeftAlignment*/);
	extree1.ScrollPartCaption(1/*exHScroll*/,128/*exUpperBackPart*/,"right");
	extree1.ScrollPartCaptionAlignment(1/*exHScroll*/,128/*exUpperBackPart*/,2/*RightAlignment*/);
	extree1.ColumnAutoResize(false);
	extree1.Columns().Add(1);
	extree1.Columns().Add(2);
	extree1.Columns().Add(3);
	extree1.Columns().Add(4);
	extree1.Columns().Add(5);
	extree1.Columns().Add(6);
}
373
How do I select the next row/item
public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Column");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem("Item 1");
		com_Items.AddItem("Item 2");
		com_Items.AddItem("Item 3");
		com_Items.SelectItem(com_Items.NextVisibleItem(com_Items.FocusItem()),true);
}
372
How do I enable resizing ( changing the height ) the items at runtime

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.ItemsAllowSizing(-1/*exResizeItem*/);
	extree1.DrawGridLines(1/*exHLines*/);
	extree1.ScrollBySingleLine(true);
	extree1.Columns().Add("Column");
	extree1.Items().AddItem("Item 1");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.ItemHeight(com_Items.AddItem("Item 2"),48);
	extree1.Items().AddItem("Item 3");
	extree1.Items().AddItem("Item 4");
}
371
How do I enable resizing all the items at runtime

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.ItemsAllowSizing(1/*exResizeAllItems*/);
	extree1.DrawGridLines(1/*exHLines*/);
	extree1.Columns().Add("Column");
	extree1.Items().AddItem("Item 1");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.ItemHeight(com_Items.AddItem("Item 2"),48);
	extree1.Items().AddItem("Item 3");
}
370
How can I remove the filter
public void init()
{
	COM com_Column;
	anytype var_Column;
	;

	super();

	var_Column = COM::createFromVariant(extree1.Columns().Add("Column")); com_Column = var_Column;
		com_Column.DisplayFilterButton(true);
		com_Column.FilterType(1/*exBlanks*/);
	extree1.ApplyFilter();
	extree1.ClearFilter();
}
369
How do I change the control's border, using your EBN files

public void init()
{
	;

	super();

	extree1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	extree1.Appearance(16777216);
}
368
Can I change the default border of the tooltip, using your EBN files

public void init()
{
	;

	super();

	extree1.ToolTipDelay(1);
	extree1.ToolTipWidth(364);
	extree1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	extree1.Background(64/*exToolTipAppearance*/,0x1000000);
	COM::createFromVariant(extree1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column");
}
367
Can I change the background color for the tooltip

public void init()
{
	;

	super();

	extree1.ToolTipDelay(1);
	extree1.ToolTipWidth(364);
	extree1.Background(65/*exToolTipBackColor*/,WinApi::RGB2int(255,0,0));
	COM::createFromVariant(extree1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column");
}
366
Does the tooltip support HTML format

public void init()
{
	;

	super();

	extree1.ToolTipDelay(1);
	extree1.ToolTipWidth(364);
	COM::createFromVariant(extree1.Columns().Add("tootip")).ToolTip("<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgcolor>");
}
365
Can I change the forecolor for the tooltip

public void init()
{
	;

	super();

	extree1.ToolTipDelay(1);
	extree1.ToolTipWidth(364);
	extree1.Background(66/*exToolTipForeColor*/,WinApi::RGB2int(255,0,0));
	COM::createFromVariant(extree1.Columns().Add("tootip")).ToolTip("this is a tooltip assigned to a column");
}
364
Can I change the foreground color for the tooltip

public void init()
{
	;

	super();

	extree1.ToolTipDelay(1);
	extree1.ToolTipWidth(364);
	COM::createFromVariant(extree1.Columns().Add("tootip")).ToolTip("<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>");
}
363
How can I merge cells

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.DrawGridLines(-1/*exAllLines*/);
	extree1.MarkSearchColumn(false);
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	extree1.Columns().Add("C3");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("this cell merges the first two columns");
		com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(1));
		h = com_Items.AddItem();
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"this cell merges the last two columns");
		com_Items.CellMerge(h,COMVariant::createFromInt(1),COMVariant::createFromInt(2));
		h = com_Items.AddItem("this cell merges the all three columns");
		com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(1));
		com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(2));
		h = com_Items.AddItem("this draws a divider item");
		com_Items.ItemDivider(h,0);
}
362
How can I merge cells

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.MarkSearchColumn(false);
	extree1.TreeColumnIndex(-1);
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
		com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false);
		h = com_Items.AddItem("This is bit of text merges all cells in the item");
		com_Items.ItemDivider(h,0);
		com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/);
}
361
How can I specify the width for a splited cell

public void init()
{
	COM com_Items;
	COMVariant s,s1;
	anytype var_Items;
	int h;
	;

	super();

	extree1.DrawGridLines(-2/*exRowLines*/);
	extree1.Columns().Add("Single Column");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Split 1");
		s = com_Items.SplitCell(h,COMVariant::createFromInt(0));
		com_Items.CellWidth(,s,64);
		com_Items.CellCaption(,s,"Split 2");
		s1 = com_Items.SplitCell(,s);
		com_Items.CellCaption(,s1,"Split 3");
		com_Items.CellWidth(,s1,64);
}
360
How can I split a cell in three parts

public void init()
{
	COM com_Items;
	COMVariant s,s1;
	anytype var_Items;
	int h;
	;

	super();

	extree1.DrawGridLines(-2/*exRowLines*/);
	extree1.Columns().Add("Single Column");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Split 1");
		s = com_Items.SplitCell(h,COMVariant::createFromInt(0));
		com_Items.CellCaption(,s,"Split 2");
		s1 = com_Items.SplitCell(,s);
		com_Items.CellCaption(,s1,"Split 3");
}
359
How can I add a button aligned to right

public void init()
{
	COM com_Items;
	COMVariant s;
	anytype var_Items;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	extree1.Images(COMVariant::createFromStr(var_s));
	extree1.Columns().Add("Single Column");
	extree1.ShowFocusRect(false);
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.ItemDivider(com_Items.AddItem("This is a bit of text being displayed on the entire item"),0);
		s = com_Items.SplitCell(com_Items.AddItem("Split Cell 1.1"),COMVariant::createFromInt(0));
		com_Items.CellCaption(,s,"Split Cell <img>1</img>");
		com_Items.CellCaptionFormat(,s,1/*exHTML*/);
		com_Items.CellHAlignment(,s,1/*CenterAlignment*/);
		com_Items.CellHasButton(,s,16777216);
		com_Items.CellWidth(,s,84);
}
358
How can I split a cell

public void init()
{
	COM com_Items;
	COMVariant s;
	anytype var_Items;
	str var_s;
	;

	super();

	extree1.DrawGridLines(-2/*exRowLines*/);
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	extree1.Images(COMVariant::createFromStr(var_s));
	extree1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	extree1.Columns().Add("Single Column");
	extree1.ShowFocusRect(false);
	var_Items = extree1.Items(); com_Items = var_Items;
		s = com_Items.SplitCell(com_Items.AddItem("Split Cell 1.1"),COMVariant::createFromInt(0));
		com_Items.CellCaption(,s,"Split Cell <img>1</img>");
		com_Items.CellCaptionFormat(,s,1/*exHTML*/);
		com_Items.CellHAlignment(,s,1/*CenterAlignment*/);
		com_Items.CellBackColor(,s,0x1000000);
		com_Items.CellWidth(,s,84);
}
357
Can I select an item giving its general position

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.SelectPos(COMVariant::createFromInt(1));
}
356
How can I change the color for separator / dividers items

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.GridLineColor(WinApi::RGB2int(255,0,0));
	extree1.MarkSearchColumn(false);
	extree1.TreeColumnIndex(-1);
	extree1.ScrollBySingleLine(false);
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
		com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false);
		h = com_Items.AddItem();
		com_Items.ItemDivider(h,0);
		com_Items.ItemDividerLine(h,4/*DoubleDotLine*/);
		com_Items.ItemDividerLineAlignment(h,1/*DividerCenter*/);
		com_Items.ItemHeight(h,6);
		com_Items.SelectableItem(h,false);
		h = com_Items.AddItem("Cell 2");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
		com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false);
}
355
How can I add separator - dividers items

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.MarkSearchColumn(false);
	extree1.TreeColumnIndex(-1);
	extree1.ScrollBySingleLine(false);
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
		com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false);
		h = com_Items.AddItem();
		com_Items.ItemDivider(h,0);
		com_Items.ItemDividerLine(h,4/*DoubleDotLine*/);
		com_Items.ItemDividerLineAlignment(h,1/*DividerCenter*/);
		com_Items.ItemHeight(h,6);
		com_Items.SelectableItem(h,false);
		h = com_Items.AddItem("Cell 2");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
		com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false);
}
354
Can I change the style of the line being displayed by a divider item

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.MarkSearchColumn(false);
	extree1.TreeColumnIndex(-1);
	extree1.ScrollBySingleLine(false);
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
		com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false);
		h = com_Items.AddItem("This is bit of text that's displayed on the entire item, divider.");
		com_Items.ItemDivider(h,0);
		com_Items.ItemDividerLine(h,4/*DoubleDotLine*/);
		com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/);
		com_Items.ItemHeight(h,24);
}
353
Can I remove the line being displayed by a divider item

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.MarkSearchColumn(false);
	extree1.TreeColumnIndex(-1);
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
		com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false);
		h = com_Items.AddItem("This is bit of text that's displayed on the entire item, divider.");
		com_Items.ItemDivider(h,0);
		com_Items.ItemDividerLine(h,0/*EmptyLine*/);
		com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/);
}
352
How can I display a divider item, merging all cells

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.MarkSearchColumn(false);
	extree1.TreeColumnIndex(-1);
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
		com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false);
		h = com_Items.AddItem("This is bit of text that's displayed on the entire item, divider.");
		com_Items.ItemDivider(h,0);
		com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/);
}
351
How can I fix or lock items

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.LockedItemCount(0/*TopAlignment*/,1);
		com_Items.CellCaption(com_Items.LockedItem(0/*TopAlignment*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control.");
		com_Items.ItemBackColor(com_Items.LockedItem(0/*TopAlignment*/,0),WinApi::RGB2int(196,196,186));
		com_Items.LockedItemCount(2/*BottomAlignment*/,2);
		com_Items.CellCaption(com_Items.LockedItem(2/*BottomAlignment*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control.");
		com_Items.ItemBackColor(com_Items.LockedItem(2/*BottomAlignment*/,0),WinApi::RGB2int(196,196,186));
		com_Items.CellCaption(com_Items.LockedItem(2/*BottomAlignment*/,1),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control.");
		com_Items.ItemBackColor(com_Items.LockedItem(2/*BottomAlignment*/,1),WinApi::RGB2int(186,186,186));
}
350
How can I fix or lock an item on the bottom side of the control

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.LockedItemCount(2/*BottomAlignment*/,1);
		com_Items.CellCaption(com_Items.LockedItem(2/*BottomAlignment*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the bottom side of the control.");
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
}
349
How can I fix or lock an item on the top of the control

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.LockedItemCount(0/*TopAlignment*/,1);
		com_Items.CellCaption(com_Items.LockedItem(0/*TopAlignment*/,0),COMVariant::createFromInt(0),"This is a locked item, fixed to the top side of the control.");
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
}
348
Is there any function to limit the height of the items when I display it using multiple lines

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.ScrollBySingleLine(true);
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.");
		com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false);
		com_Items.ItemMaxHeight(h,48);
}
347
Why I cannot center my cells in the column

public void init()
{
	;

	super();

	extree1.TreeColumnIndex(-1);
	extree1.DrawGridLines(-2/*exRowLines*/);
	COM::createFromVariant(extree1.Columns().Add("Default")).Alignment(1/*CenterAlignment*/);
	extree1.Items().AddItem("item 1");
	extree1.Items().AddItem("item 2");
	extree1.Items().AddItem("item 3");
}
346
How can I align the cell to the left, center or to the right

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.TreeColumnIndex(-1);
	extree1.DrawGridLines(-2/*exRowLines*/);
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.CellHAlignment(com_Items.AddItem("left"),COMVariant::createFromInt(0),0/*LeftAlignment*/);
		com_Items.CellHAlignment(com_Items.AddItem("center"),COMVariant::createFromInt(0),1/*CenterAlignment*/);
		com_Items.CellHAlignment(com_Items.AddItem("right"),COMVariant::createFromInt(0),2/*RightAlignment*/);
}
345
How do I apply HTML format to a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s,var_s1;
	;

	super();

	extree1.TreeColumnIndex(-1);
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	extree1.Images(COMVariant::createFromStr(var_s));
	extree1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif");
	extree1.HTMLPicture("p2","c:\\exontrol\\images\\auction.gif");
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("The following item shows some of the HTML format supported:");
		com_Items.CellHAlignment(h,COMVariant::createFromInt(0),1/*CenterAlignment*/);
		var_s1 = "<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <u";
		var_s1 = var_s1 + ">underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolor";
		var_s1 = var_s1 + "</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> ";
		h = com_Items.AddItem(COMVariant::createFromStr(var_s1));
		com_Items.CellCaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/);
		com_Items.CellSingleLine(h,COMVariant::createFromInt(0),false);
}
344
How can I change the font for a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Default");
	extree1.Items().AddItem("std font");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.CellCaptionFormat(com_Items.AddItem("this <font tahoma;12>is a bit of text with</font> a different font"),COMVariant::createFromInt(0),1/*exHTML*/);
}
343
How can I change the font for a cell

public void init()
{
	COM com_Items,com_f;
	anytype f,var_Items;
	;

	super();

	extree1.Columns().Add("Default");
	extree1.Items().AddItem("default font");
	f = COM::createFromObject(new stdole.StdFont()); com_f = f;
		f.Name("Tahoma");
		f.Size(12);
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.CellFont(com_Items.AddItem("new font"),COMVariant::createFromInt(0),f);
}
342
How can I change the font for entire item

public void init()
{
	COM com_Items,com_f;
	anytype f,var_Items;
	;

	super();

	extree1.Columns().Add("Default");
	extree1.Items().AddItem("default font");
	f = COM::createFromObject(new stdole.StdFont()); com_f = f;
		f.Name("Tahoma");
		f.Size(12);
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.ItemFont(com_Items.AddItem("new font"),f);
}
341
How do I vertically align a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.DrawGridLines(-2/*exRowLines*/);
	COM::createFromVariant(extree1.Columns().Add("MultipleLine")).Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false));
	extree1.Columns().Add("VAlign");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("This is a bit of long text that should break the line");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"top");
		com_Items.CellVAlignment(h,COMVariant::createFromInt(1),0/*TopAlignment*/);
		h = com_Items.AddItem("This is a bit of long text that should break the line");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"middle");
		com_Items.CellVAlignment(h,COMVariant::createFromInt(1),1/*MiddleAlignment*/);
		h = com_Items.AddItem("This is a bit of long text that should break the line");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"bottom");
		com_Items.CellVAlignment(h,COMVariant::createFromInt(1),2/*BottomAlignment*/);
}
340
How can I change the position of an item

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.AddItem("Item 1");
		com_Items.AddItem("Item 2");
		com_Items.ItemPosition(com_Items.AddItem("Item 3"),0);
}
339
How do I find an item based on a path

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.ItemData(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(1234));
		com_Items.ExpandItem(h,true);
		com_Items.ItemBold(com_Items.FindPath("Root 1\\Child 1"),true);
}
338
How do I find an item based on my extra data

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.ItemData(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(1234));
		com_Items.ExpandItem(h,true);
		com_Items.ItemBold(com_Items.FindItemData(COMVariant::createFromInt(1234)),true);
}
337
How do I find an item

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.ItemBold(com_Items.FindItem("Child 2",COMVariant::createFromInt(0)),true);
}
336
How can I insert a hyperlink or an anchor element

public void init()
{
	COM com_Items,com_Items1;
	anytype var_Items,var_Items1;
	;

	super();

	extree1.Columns().Add("Column");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.CellCaptionFormat(com_Items.AddItem("Just an <a1>anchor</a> element ..."),COMVariant::createFromInt(0),1/*exHTML*/);
	var_Items1 = extree1.Items(); com_Items1 = var_Items1;
		com_Items1.CellCaptionFormat(com_Items1.AddItem("Just another <a2>anchor</a> element ..."),COMVariant::createFromInt(0),1/*exHTML*/);
}
335
How do I find the index of the item based on its handle

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.ItemBold(com_Items.ItemByIndex(com_Items.ItemToIndex(h)),true);
}
334
How do I find the handle of the item based on its index

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.ItemBold(com_Items.ItemByIndex(1),true);
}
333
How can I find the cell being clicked in a radio group

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.MarkSearchColumn(false);
	extree1.SelBackColor(WinApi::RGB2int(255,255,128));
	extree1.SelForeColor(WinApi::RGB2int(0,0,0));
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	extree1.Columns().Add("C3");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"Radio 1");
		com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true);
		com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234);
		com_Items.CellCaption(h,COMVariant::createFromInt(2),"Radio 2");
		com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true);
		com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234);
		com_Items.CellState(h,COMVariant::createFromInt(1),1);
		com_Items.CellBold(,com_Items.CellChecked(1234),true);
}
332
Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.LinesAtRoot(-1/*exLinesAtRoot*/);
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.ItemHasChildren(com_Items.AddItem("parent item with no child items"),true);
		com_Items.AddItem("next item");
}
331
Can I let the user to resize at runtime the specified item

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.ScrollBySingleLine(true);
	extree1.DrawGridLines(-2/*exRowLines*/);
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.ItemAllowSizing(com_Items.AddItem("resizable item"),true);
		com_Items.AddItem("not resizable item");
}
330
How can I change the size ( width, height ) of the picture

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(extree1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")));
		com_Items.CellPictureWidth(h,COMVariant::createFromInt(0),24);
		com_Items.CellPictureHeight(h,COMVariant::createFromInt(0),24);
		com_Items.ItemHeight(h,32);
		h = com_Items.AddItem("Root 2");
		com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(extree1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")));
		com_Items.ItemHeight(h,48);
}
329
How can I find the number or the count of selected items

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.SingleSel(false);
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.SelectItem(com_Items.ItemChild(h),true);
		com_Items.SelectItem(com_Items.NextSiblingItem(com_Items.ItemChild(h)),true);
		com_Items.AddItem(com_Items.SelectCount());
}
328
How do I unselect an item

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.SelectItem(h,false);
}
327
How do I find the selected item

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.SelectItem(h,true);
		com_Items.ItemBold(com_Items.SelectedItem(0),true);
}
326
How do I un select all items
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.SingleSel(false);
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.UnselectAll();
}
325
How do I select multiple items

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.SingleSel(false);
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.SelectItem(com_Items.ItemChild(h),true);
		com_Items.SelectItem(com_Items.NextSiblingItem(com_Items.ItemChild(h)),true);
}
324
How do I select all items

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.SingleSel(false);
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.SelectAll();
}
323
How do I select an item

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.SelectItem(h,true);
}
322
Can I display a button with some picture or icon inside

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif");
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button <img>p1</img> ");
		com_Items.CellCaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/);
		com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/);
		com_Items.CellHasButton(h,COMVariant::createFromInt(1),true);
		com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true);
		com_Items.ItemHeight(h,48);
}
321
Can I display a button with some picture or icon inside

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	extree1.Images(COMVariant::createFromStr(var_s));
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button <img>1</img> ");
		com_Items.CellCaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/);
		com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/);
		com_Items.CellHasButton(h,COMVariant::createFromInt(1),true);
		com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true);
}
320
Can I display a button with some icon inside

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	extree1.Images(COMVariant::createFromStr(var_s));
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1)," <img>1</img> ");
		com_Items.CellCaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/);
		com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/);
		com_Items.CellHasButton(h,COMVariant::createFromInt(1),true);
		com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true);
}
319
How can I assign multiple icon/picture to a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif");
	extree1.HTMLPicture("p2","c:\\exontrol\\images\\auction.gif");
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("text <img>p1</img> another picture <img>p2</img> and so on");
		com_Items.CellCaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/);
		com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(extree1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)")));
		com_Items.ItemHeight(h,48);
		com_Items.AddItem("Root 2");
}
318
How can I assign an icon/picture to a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(extree1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")));
		com_Items.ItemHeight(h,48);
		com_Items.AddItem("Root 2");
}
317
How can I assign multiple icons/pictures to a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	extree1.Images(COMVariant::createFromStr(var_s));
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root <img>1</img> 1, <img>2</img>, ... and so on ");
		com_Items.CellCaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/);
}
316
How can I assign multiple icons/pictures to a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	extree1.Images(COMVariant::createFromStr(var_s));
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.CellImages(h,COMVariant::createFromInt(0),"1,2,3");
}
315
How can I assign an icon/picture to a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	extree1.Images(COMVariant::createFromStr(var_s));
	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.CellImage(h,COMVariant::createFromInt(0),1);
		com_Items.CellImage(com_Items.InsertItem(h,,"Child 1"),COMVariant::createFromInt(0),2);
		com_Items.CellImage(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(0),3);
		com_Items.ExpandItem(h,true);
}
314
How can I get the handle of an item based on the handle of the cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("Default");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root 1");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
		com_Items.ItemBold(com_Items.CellItem(com_Items.ItemCell(h,COMVariant::createFromInt(0))),true);
}
313
How can I display a button inside the item or cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button 1 ");
		com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/);
		com_Items.CellHasButton(h,COMVariant::createFromInt(1),true);
		com_Items.CellButtonAutoWidth(h,COMVariant::createFromInt(1),true);
		h = com_Items.AddItem("Cell 2");
		com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button 2 ");
		com_Items.CellHAlignment(h,COMVariant::createFromInt(1),1/*CenterAlignment*/);
		com_Items.CellHasButton(h,COMVariant::createFromInt(1),true);
}
312
How can I change the state of a radio button

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.MarkSearchColumn(false);
	extree1.SelBackColor(WinApi::RGB2int(255,255,128));
	extree1.SelForeColor(WinApi::RGB2int(0,0,0));
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	extree1.Columns().Add("C3");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"Radio 1");
		com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true);
		com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234);
		com_Items.CellCaption(h,COMVariant::createFromInt(2),"Radio 2");
		com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true);
		com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234);
		com_Items.CellState(h,COMVariant::createFromInt(1),1);
}
311
How can I assign a radio button to a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.MarkSearchColumn(false);
	extree1.SelBackColor(WinApi::RGB2int(255,255,128));
	extree1.SelForeColor(WinApi::RGB2int(0,0,0));
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	extree1.Columns().Add("C3");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"Radio 1");
		com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true);
		com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234);
		com_Items.CellCaption(h,COMVariant::createFromInt(2),"Radio 2");
		com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true);
		com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234);
		com_Items.CellState(h,COMVariant::createFromInt(1),1);
}
310
How can I change the state of a checkbox

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"Check Box");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(1),true);
		com_Items.CellState(h,COMVariant::createFromInt(1),1);
}
309
How can I assign a checkbox to a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"Check Box");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(1),true);
}
308
How can I display an item or a cell on multiple lines

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.ScrollBySingleLine(true);
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines");
		com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false);
}
307
How can I assign a tooltip to a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"tooltip");
		com_Items.CellToolTip(h,COMVariant::createFromInt(1),"This is bit of text that's shown when the user hovers the cell");
}
306
How can I associate an extra data to a cell
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2");
		com_Items.CellData(h,COMVariant::createFromInt(1),"your extra data");
}
305
How do I enable or disable a cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2");
		com_Items.CellEnabled(h,COMVariant::createFromInt(1),false);
}
304
How do I change the cell's foreground color

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2");
		com_Items.CellForeColor(h,COMVariant::createFromInt(1),WinApi::RGB2int(255,0,0));
}
303
How do I change the visual effect for the cell, using your EBN files

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2");
		com_Items.CellBackColor(h,COMVariant::createFromInt(1),0x1000000);
}
302
How do I change the cell's background color

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Cell 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2");
		com_Items.CellBackColor(h,COMVariant::createFromInt(1),WinApi::RGB2int(255,0,0));
}
301
How do I change the caption or value for a particular cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	extree1.Columns().Add("C1");
	extree1.Columns().Add("C2");
	var_Items = extree1.Items(); com_Items = var_Items;
		com_Items.CellCaption(com_Items.AddItem("Cell 1"),COMVariant::createFromInt(1),"Cell 2");
}